package com.zzzyh.forumsystemclient.services;

import com.zzzyh.forumsystemclient.model.Notifications;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface INotificationService {
    List<Notifications> notifications(Integer pageNum, Integer pageSize, String type,Integer userId);

    Integer total(String type,Integer userId,Integer isRead);

    Boolean isUnread(Integer userId);

    void read(Integer notificationId);

    void readAll(Integer userId);

    void add(@Param("notifications") Notifications notifications);

    void delete(Integer integer);
}
